<div class="form-group" {guanlians}>
	<label class="col-xs-12 col-sm-3 col-md-2 right-label" ng-class="{'must':{must}}">{{check_show_lang('{title}')}}</label>
	<div class="col-sm-8 col-xs-6">
		<div class="frm_controls">
            <div class="date_select">
                <div class="js_day_dropdown dropdown_menu">
					<a href="javascript:;" ng-click="toogle(pagedata,'show{name1}');" class="btn dropdown_switch jsDropdownBt">
						<label class="jsBtLabel">{{pagedata.days[{tovalue}.{name1}].title}}</label>
						<i class="arrow"></i>
					</a>
					<div ng-if="pagedata.show{name1}" class="dropdown_data_container jsDropdownList">
						<ul class="dropdown_data_list">	
								<li ng-repeat="(key,item) in pagedata.days" class="dropdown_data_item">  
									<a href="javascript:;" class="jsDropdownItem" ng-click="{tovalue}.{name1}=key;;pagedata.show{name1}=false;pagedata.upsend_time()">{{item.title}}</a>
								</li>
						</ul>
					</div>
				</div>
				<div class="js_hours_dropdown dropdown_menu time">
					<a href="javascript:;" ng-click="toogle(pagedata,'show{name2}');" class="btn dropdown_switch jsDropdownBt">
						<label class="jsBtLabel">{{pagedata.hours[{tovalue}.{name2}]}}</label>
						<i class="arrow"></i>
					</a>
					<div ng-if="pagedata.show{name2}" class="dropdown_data_container jsDropdownList">
						<ul class="dropdown_data_list">	
								<li ng-repeat="(key,value) in pagedata.hours" ng-if="{tovalue}.{name1}!=0 || pagedata.nowhours<=key" class="dropdown_data_item">  
									<a href="javascript:;" class="jsDropdownItem" ng-click="{tovalue}.{name2}=value;pagedata.show{name2}=false;pagedata.upsend_time()">{{value}}</a>
								</li>
						</ul>
					</div>
				</div>
				<span class="date_select_gap">时</span>
				<div class="js_min_dropdown dropdown_menu time">
					<a href="javascript:;" ng-click="toogle(pagedata,'show{name3}');" class="btn dropdown_switch jsDropdownBt">
						<label class="jsBtLabel">{{pagedata.mins[{tovalue}.{name3}]}}</label>
						<i class="arrow"></i>
					</a>
					<div ng-if="pagedata.show{name3}" class="dropdown_data_container jsDropdownList">
						<ul class="dropdown_data_list">
								<li ng-repeat="(key,value) in pagedata.mins" ng-if="{tovalue}.{name2}!=pagedata.nowhours || pagedata.nowminutes<key+5" class="dropdown_data_item">  
									<a href="javascript:;" class="jsDropdownItem" ng-click="{tovalue}.{name3}=value;pagedata.show{name3}=false;pagedata.upsend_time()">{{value}}</a>
								</li>
						</ul>
					</div>
				</div>
                <span class="date_select_gap">分</span>
            </div>
            <p style="display: none;" class="js_hottimetips frm_msg fail"></p>
        </div>
	</div>
</div>
<script type="text/javascript">
var d = new Date();
scope.pagedata.nowhours=parseInt(d.getHours());
scope.pagedata.nowminutes=parseInt(d.getMinutes());
scope.{tovalue}.{name2}=scope.pagedata.nowhours;
scope.{tovalue}.{name3}=scope.pagedata.nowminutes+10;
var todayvalue =  d.getFullYear()+"-" + (d.getMonth()+1) + "-" + d.getDate();
d.setTime(d.getTime()+24*60*60*1000);
var tomvalue = d.getFullYear()+"-" + (d.getMonth()+1) + "-" + d.getDate();
scope.pagedata.days=scope.pagedata.days?scope.pagedata.days:[{'title':'今天','value':todayvalue},{'title':'明天','value':tomvalue}];
scope.pagedata.hours=scope.pagedata.hours?scope.pagedata.hours:[00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24];
scope.pagedata.mins=scope.pagedata.mins?scope.pagedata.mins:[00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59];
scope.pagedata.upsend_time=function(){
	scope.pagedata.item.{name}=scope.pagedata.days[scope.{tovalue}.{name1}].value +' '+scope.{tovalue}.{name2}+':'+scope.{tovalue}.{name3};
}
scope.pagedata.upsend_time();
</script>
